/*
 * @Descripttion: 
 * @Version: 1.0
 * @Author: jiaxiaojie
 * @Date: 2022-12-23 14:27:32
 * @LastEditors: jiaxiaojie
 * @LastEditTime: 2022-12-23 14:29:20
 */
var area = document.getElementById('scrollBox');
var con1 = document.getElementById('con1');
var con2 = document.getElementById('con2');
var speed = 50;
area.scrollTop = 0;
con2.innerHTML = con1.innerHTML;

function scrollUp () {
  if (area.scrollTop >= con1.scrollHeight) {
    area.scrollTop = 0;
  } else {
    area.scrollTop++;
  }
}
var myScroll = setInterval("scrollUp()", speed);
area.onmouseover = function () {
  clearInterval(myScroll);
}
area.onmouseout = function () {
  myScroll = setInterval("scrollUp()", speed);
}